#include "cvTest.h"

Solution::Solution() {
	
	cvtColor(src, src_gray, COLOR_BGR2GRAY);
	blur(src_gray, src_gray, Size(3, 3));

	const char* source_window = "source";
	namedWindow(source_window);
	resize(src, src, Size(200, 200));
	imshow(source_window, src);

	const int max_thresh = 255;
	createTrackbar("canny thresh", source_window, &thresh, max_thresh,thresh_callback);
	
	thresh_callback(0, 0);

	waitKey();
}

Mat Solution::src_gray = Mat();
int Solution::thresh = 100;
RNG Solution::rng = RNG(12345);